local fengtu = fk.CreateSkill{
    name = "va_heg__fengtu",
}

Fk:loadTranslationTable{
    ["va_heg__fengtu"] = "封土",
    [":va_heg__fengtu"] = "与你势力相同的角色触发应变效果后，你可以令其摸一张牌。",
    ["#va_heg__fengtu-invoke"] = "封土：是否发动封土，令 %src 摸一张牌",
}

local H = require "packages/ol_hegemony/util"
local VH = require "packages/variation_hegemony/vautil"

fengtu:addEffect(VH.VariationFinished,{
    anim_type = "drawcard",
    can_trigger = function (self, event, target, player, data)
       return player:hasSkill(fengtu.name) and H.compareKingdomWith(target,player) and not target.dead
    end,
    on_cost = function (self, event, target, player, data)
       return player.room:askToSkillInvoke(player,{ skill_name = fengtu.name, prompt = "#va_heg__fengtu-invoke:"..target.id})
    end,
    on_use = function (self, event, target, player, data)
       target:drawCards(1, fengtu.name)
    end,
})

return fengtu